package com.heaven.constant;

public class VideoConstants {
    /** 视频实体新建状态 */
    public static final int VIDEO_CREATE_STATUS = 0;

    /** 视频实体确认提交状态状态 */
    public static final int VIDEO_SUBMIT_STATUS = 1;

    /** 视频实体可公布状态 */
    public static final int VIDEO_PUBLISH_STATUS = 2;


    /** 视频点赞锁，后续追加videoId */
    public static final String VIDEO_LIKE_RW_LOCK = "rw-video-like:";

    /** 播放量请求：获取视频播放token */
    public static final int PLAY_COUNT_REQ_TYPE_TOKEN = 1;
    /** 播放量请求：视频首次播放 */
    public static final int PLAY_COUNT_REQ_TYPE_START = 2;
    /** 播放量请求：视频播放 */
    public static final int PLAY_COUNT_REQ_TYPE_PLAY = 3;
    /** 播放量请求：视频暂停 */
    public static final int PLAY_COUNT_REQ_TYPE_PAUSE = 4;
    /** 播放量请求：视频跳出或播放完成 */
    public static final int PLAY_COUNT_REQ_TYPE_ENDED = 5;

    /** 播放量锁，后续追加videoId */
    public static final String PLAY_COUNT_RW_LOCK = "rw-video-play-count:";

    /** 视频播放量token前缀，后接token */
    public static final String PLAY_COUNT_TOKEN_KEY_PREFIX = "play-count-token:";
}
